package currency

object Europe extends CurrencyZone {
    override type Currency = Euro

    override def make(x: Long): Euro =
        new Euro {
            override val amount: Long = x
        }


    abstract class Euro extends AbstractCurrency {
        override def designation: String = "EUR"
    }

    val Cent = make(1)
    val Euro = make(100)
    //// 定义在属性Euro下面 不然会报错
    override val CurrencyUnit: Euro = Euro

}
